import request from "@/plugins/axios";

export function getPage(data){
    return request({
        url:"/purchases/getPurchasesPage",
        method:"POST",
        data:data,
    })
}
export function getSupplier(){
    return request({
        url:"/purchases/getSupplier",
        method:"POST"
    })
}
export function getAddSupplier(data){
    return request({
        url:"/purchases/selPurOnSup/"+data,
        method:"POST"
    })
}
export function addPurchases(data){
    return request({
        url:"/purchases/addPurchases",
        method:"POST",
        data:data
    })
}

export function delPurchases(data){
    return request({
        url:"/purchases/delPurchase/"+data,
        method:"POST"
    })
}